<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>


<c:if test="${code==1}">	
	<form id="pagerForm" method="post" action="courierFunctionAction.action?toResult=searchCourierFunction&rightId=${rightId}">
		<input type="hidden" name="dc_Id" value="${dc_Id}" />
		<input type="hidden" name="userId" value="${userId}" />
		<input type="hidden" name="daily_time" value="${daily_time}" />
		<input type="hidden" name="daily_type" value="${daily_type}" />
		<input type="hidden" name="daily_detail" value="${daily_detail}" />
		<input type="hidden" name="daily_result" value="${daily_result}" />
		<input type="hidden" name="daily_content" value="${daily_content}" />
		<input type="hidden" name="createTime" value="${createTime}" />
		<input type="hidden" name="daily_userName" value="${daily_userName}" />
	</form>
 
	<form onsubmit="return navTabSearch(this);" action="courierFunctionAction.action?toResult=searchCourierFunction&rightId=${rightId}" method="post">
		<div class="pageHeader">
			<input type="hidden" name="init" value=0>
			<div class="searchBar">
				<table class="searchContent">
					<tr>		
						<td>快递网点：</td>
							<td width=""><a class="btnLook"
									href="javascript:void(0);" onclick="lookUpNetsite()">									
									查找带回</a><input id="searchCompany_netsiteName" type="text" name="netSiteName"
									 bringBackName="netSiteName" value="${netSiteName}" readonly="readonly" size="30" />
									 <input type="hidden"
									name="netSiteId"  bringBackName="netSiteId" value="${netSiteId}" /></td>			
						<td>真实姓名: <input id="realname" type="text" name="realname" value="${realname}" />
						</td>						
						<td>
							<div class="buttonActive">
								<div class="buttonContent">
									<button type="submit">检索</button>
								</div>
							</div>
						</td>
					</tr>
			
				</table>

		</div>
		<div class="pageContent">
			<div class="panelBar">
				<ul class="toolBar">
					<c:forEach items="${righSubtList}" var="rightsub">
						<!-- 添加 -->
						<c:if test="${fn:contains(rightsub.rightValue,'addBdDaily')}">
							<li><a class="add" href="${rightsub.rightValue}&rightId=${rightId}" target="navTab"><span>${rightsub.rightName}</span> </a>
							</li>
							<li class="line">line</li>
						</c:if>
						<!-- Bd总结查看  -->
<%-- 						<c:if test="${fn:contains(rightsub.rightValue,'findBdDaily')}">
							<li><a class="edit" href="${rightsub.rightValue}&supportID={sid_support}&rightId=${rightId}" target="navTab"><span>${rightsub.rightName}</span> </a>
							</li>
							<li class="line">line</li>
						</c:if> --%>
						<c:if
							test="${fn:contains(rightsub.rightValue,'findBdDaily')}">
							<li><a class="edit"
								href="${rightsub.rightValue}&supportID={sid_support}&rightId=${rightId}"
								target="navTab"><span>${rightsub.rightName}</span> </a></li>
							<li class="line">line</li>
						</c:if>
					</c:forEach>
				</ul>
			</div>
			<table class="list" width="100%" layoutH="108">
				<thead>
					<tr>
						<th align="center">序号</th>
						<th align="center">姓名</th>
						<th align="center">任务时间</th>
<!-- 						<th align="center">事项</th>
						<th align="center">过程说明</th>
						<th align="center">结果</th>
						<th align="center">备注</th> -->
					</tr>
				</thead>
				<tbody>
					<s:iterator var="bdDaily" value="page.data" status="st">
						<tr target="sid_support" rel="<s:property value="#bdDaily.userId" />,<s:property value="#bdDaily.createTime" />">
							<th width="1%" align="center"><s:property value="page.pageSize * (page.currentPage-1) + #st.index + 1" /></th>
							<th width="3%" align="center"><s:property value="#bdDaily.userName" /></th> 
							<th width="3%" align="center"><s:date name='#bdDaily.createTime' format='yyyy-MM-dd' /></th>
						
						<!--
 							<th width="3%" align="left"><s:property value="#bdDaily.daily_type" /></th>
							<th width="3%" align="left"><s:property value="#bdDaily.daily_detail" /></th>
							<th width="3%" align="left"><s:property value="#bdDaily.daily_result" /></th>
							<th width="3%" align="left"><s:property value="#bdDaily.daily_content" /></th> 
						-->
							
						</tr>
					</s:iterator>
				</tbody>
			</table>
			<div class="panelBar">
				<div class="pages">
					<span>共${page.totalNum }条，共${page.totalPage }页</span>
				</div>
				<div class="pagination" targetType="navTab"
					totalCount="${page.totalNum }" numPerPage="${page.pageSize }"
					pageNumShown="10" currentPage="${page.currentPage }"></div>
			</div>
		</div>
	</form>
</c:if>
<c:if test="${code==0}">
	${message}
</c:if>